//
//  FView.m
//  A Learning Walk
//
//  Created by dllo on 16/6/18.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "FengView.h"

@interface FengView ()

@end

@implementation FengView

+(FengView *)creatViewFrame:(CGRect)frame withColor:(UIColor *)color withString:(NSString *)str withLabel:(NSString *)str2 withColorL:(UIColor *)color1{
    
    FengView *view1 = [[FengView alloc] initWithFrame:frame];
    view1.backgroundColor = color;
    
    UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:str]];
    image.backgroundColor = [UIColor clearColor];
    image.frame = CGRectMake(5, 5, view1.frame.size.height-10, view1.frame.size.height-10);
    [view1 addSubview:image];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(image.frame.size.width+30, 10, view1.frame.size.width/2, view1.frame.size.height-20)];
    label.backgroundColor = [UIColor clearColor];
    label.text = str2;
    label.textColor = color1;
    [view1 addSubview:label];

    return view1;
    
}

@end
